//
//  UIImageView+ShowImage.m
//  WangI
//
//  Created by 陈曦 on 15/11/23.
//  Copyright © 2015年 WJN. All rights reserved.
//

#import "UIImageView+ShowImage.h"

@implementation UIImageView (ShowImage)
-(void)WXZM:(NSString *)str {
    NSURL *url = [NSURL URLWithString:str];
    NSURLRequest *request = [NSURLRequest requestWithURL:url];
    [NSURLConnection sendAsynchronousRequest:request queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError *connectionError) {
        UIImage *im = [[UIImage alloc] initWithData:data];
        self.image = im;
    }];
    

    

}
@end
